package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {

    //添加预约
    void add(OrderSetting orderSetting);

    //修改
    void editNumberByOrderDate(OrderSetting orderSetting);

    //根据日期查询
    long findCountByOrderDate(Date orderDate);

    //根据日期查询预约设置数据
    List<OrderSetting> getOrderSettingByMonth(Map map);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date orderDate);

    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

    //根据t_order表的id增加指定日期预约人数
    void updateOrderSettingreservations(Integer id);

    //根据t_order表的id减少指定日期预约人数
    void updateOrderSettingreservations2(Integer id);
}
